﻿using mozhi.smarterp.Business.Enums;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;

namespace mozhi.smarterp.Business.Purchases.ProductPrices
{
    public class PurchaseProductPriceDto : EntityDto<Guid>
    {
        public Guid? SupplierId { get; set; }

        public string SupplierName { get; set; }

        public string Code { get; set; }

        public string Name { get; set; }

        public Guid CurrencyId { get; set; }

        public string CurrencyName { get; set; }

        public bool IncludeTax { get; set; }

        public List<PurchaseProductPriceItemDto> Items { get; set; }
    }

    public class PurchaseProductPriceItemDto : EntityDto<Guid>
    {
        public Guid ProductId { get; set; }

        public string ProductCode { get; set; }

        public string ProductName { get; set; }

        public string ProductModel {  get; set; }

        public Guid BasicUnitId { get; set; }

        public string BasicUnitName { get; set; }

        public decimal Price { get; set; }

        public decimal PriceIncludeTax { get; set; }

        public decimal PriceExcludeTax { get; set; }

        public decimal? MinQuantity { get; set; }

        public decimal? MaxQuantity { get; set; }

        public Guid? TaxRateId { get; set; }

        public string TaxRateName { get; set; }

        public decimal? TaxRateValue { get; set; }

        public DateTime EffectiveDate { get; set; }

        public DateTime ExpirationDate { get; set; }

        public int Index { get; set; }
    }
}
